/**
 * 
 */
package soa.security.ws;

import javax.jws.WebParam;
import javax.jws.WebService;

import soa.security.exception.OrganizationException;

/**
 * @author CreGu
 *
 */
@WebService
public interface PersonService {

	/**
	 * 人员信息新增
	 * 
	 * @param organizationId
	 * @param person
	 * @return
	 * @throws OrganizationException
	 */
	public boolean addPerson(
			@WebParam(name = "organizationId") String organizationId,
			@WebParam(name = "person") String person)
			throws OrganizationException;

	/**
	 * 人员信息修改
	 * 
	 * @param organizationId
	 * @param person
	 * @return
	 * @throws OrganizationException
	 */
	public boolean updatePerson(
			@WebParam(name = "organizationId") String organizationId,
			@WebParam(name = "person") String person)
			throws OrganizationException;

	/**
	 * 获取机构内的所有人员信息
	 * 
	 * @param organizationId
	 * @return
	 * @throws OrganizationException
	 */
	public String allPersons(
			@WebParam(name = "organizationId") String organizationId)
			throws OrganizationException;

	/**
	 * 获取指定人员信息
	 * 
	 * @param organizationId
	 * @param personId
	 * @return
	 * @throws OrganizationException
	 */
	public String getPerson(
			@WebParam(name = "organizationId") String organizationId,
			@WebParam(name = "personId") String personId)
			throws OrganizationException;
}
